﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace AzureGames.Model
{
    public class AzureResult
    {
        public bool WasSuccessful
        {
            get { return this.Code == 0; }
        }
        public int Code { get; set; }
        public string Message { get; set; }
    }

    public class AzureResult<T>
    {
        public bool WasSuccessful
        {
            get { return this.Code == 0; }
        }
        public int Code { get; set; }
        public string Message { get; set; }
        public List<T> ResultObject { get; set; }
    }
}
